pub mod toolbox{
    pub mod img_to_pdf;
    pub mod marge_pdf;
}

use toolbox::img_to_pdf;
use toolbox::marge_pdf;

fn main() {
    let input_path = "storage/images";
    let output_file = "storage/output.pdf";
    img_to_pdf::folder_to_pdf(input_path, output_file).expect("Failed to convert images to PDF");

    let input_path = "storage/pdf";
    let output_file = "storage/marge.pdf";
    marge_pdf::merge_pdfs_in_directory(input_path, output_file).expect("Failed to merge PDFs");
}
